package cn.ym.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourseOrderDto {
    //token
    @NotEmpty(message = "非法参数")
    private String token;
    //课程id
    @NotEmpty(message = "非法参数")
    private List<Long> courseIds;
    //支付方式
    @NotNull(message = "非法参数")
    private Integer payType;
    //是否秒杀
    @NotNull(message = "非法参数")
    private Integer type;
}
